package com.sun.webscoket.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @program: webscoket
 * @description: 控制
 * @author: sunhui
 * @create: 2020-07-15 09:06
 **/
@Controller
public class WsController {
    /**
     * 用户可以看到画面
     */
    @GetMapping("")
    public String index() {
        return "index";
    }

    /**
     * 主播直播的画面
     */
    @GetMapping("video")
    public String video() {
        return "video";
    }
}